package org.thoughtworks.selenium.flex.codec;

import java.util.HashMap;
import java.util.Map;

public class DateScrollDetailFactory {
    private static final Map<String, DateScrollDetail> DATE_SCROLL_DETAIL_MAP = new HashMap<String, DateScrollDetail>();

    static {
        for (DateScrollDetail dateScrollDetail : DateScrollDetail.values())
            DATE_SCROLL_DETAIL_MAP.put(dateScrollDetail.value(), dateScrollDetail);
    }

    public static DateScrollDetail get(String dateScrollDetail) {
        return DATE_SCROLL_DETAIL_MAP.get(dateScrollDetail);
    }    
}
